package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.factory.RemoteGgSearchFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * 用户服务
 * 
 * @author ruoyi
 */
@FeignClient(contextId = "remoteGgSearchService", value = ServiceNameConstants.SYSTEM_GGSEARCH, fallbackFactory = RemoteGgSearchFallbackFactory.class)
public interface RemoteGgSearchService
{

    /**
     * 谷歌搜索排名
     *
     * @param source 请求来源
     * @return 结果
     */
    @PostMapping("/ggSearch/goSearch")
    public R<Boolean> goSearch(@RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
